from __future__ import division
import sys
import os
import glob
from struct import calcsize, unpack, unpack_from



def main(argv=None):
    if argv is None:
        argv = sys.argv
    for fn in glob.glob('./test-files/test*.dux'):
    #for fn in glob.glob('./test-files/*.dux'):
        print '{0},'.format(fn),
        with open(fn, 'rb') as f:
            fdat = f.read()
            chdParse(fdat)
        
if __name__ == '__main__':
    sys.exit(main())